package com.mall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mall.user.entity.po.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wuyijie
 * @since 2021-06-20
 */
public interface UserMapper extends BaseMapper<User> {

    @Select("select * from user where username=#{username} and status=#{status}")
    User queryUserWithRoleByUsername(@Param("username") String username,@Param("status") int status);

}
